package com.yonyou.crm.cum.customer.appctrl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yonyou.crm.cum.customer.entity.CustomerSalesVO;
import com.yonyou.crm.cum.customer.rmitf.ICustomerSalesRmService;

@RequestMapping("/{version}/cum/regions")
@RestController
public class AppCustomerSalesCtrl{
	@Autowired
	private ICustomerSalesRmService service;
	
	public CustomerSalesVO insertCustomerSales(@PathVariable("version") String version, HttpServletRequest request, HttpServletResponse response) {
		CustomerSalesVO customerSale = new CustomerSalesVO();
		return service.insert(customerSale);
	}
}